<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Popup</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      li {
        list-style: none;
      }
      a {
        text-decoration: none;
      }
      body {
        width: 400px;
        height: 520px;
        font-family: Arial, sans-serif;
        padding: 10px;
        overflow: hidden;
        overflow-y: auto;
      }
      #result {
        margin-top: 10px;
        max-height: 480px;
        overflow-y: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        row-gap: 7px;
      }

      #result li {
        width: 90px;
        height: 50px;
      }
      #result li img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    </style>
  </head>
  <body>
    <button id="execute">抓取图片</button>
    <button id="down">下载图片</button>
    抓取规则：<input id="rule" />
    <div id="result"></div>
    <script src="popup.js"></script>
  </body>
</html>
